package com.hba.consumer;



import java.io.Serializable;


public class MessageBody implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -183590713561101259L;

	private String queueName;
	
	private String exchangeName;
	
	private String deliverKey;
	
	private byte[] messageData;

	public MessageBody(String queueName, String exchangeName, byte[] messageData, String deliverKey) {
		this.queueName = queueName;
		this.exchangeName = exchangeName;
		this.messageData=messageData;
		this.deliverKey=deliverKey;
	}
	
	public MessageBody() {
	}	

	public String getQueueName() {
		return queueName;
	}

	public String getExchangeName() {
		return exchangeName;
	}

	public byte[] getMessageData() {
		return messageData;
	}

	@Override
	public String toString() {
		return "MessageBody{" +
				"queueName='" + queueName + '\'' +
				", exchangeName='" + exchangeName + '\'' +
				", deliverKey='" + deliverKey + "'}";
	}

	public String getDeliverKey() {
		return deliverKey;
	}

	public void setDeliverKey(String deliverKey) {
		this.deliverKey = deliverKey;
	}

}
